import java.util.ArrayList;


public class game1Table extends table {
    int ante;
    ArrayList<Player> players = new ArrayList<>();
    //最小下注值,初始值为底注
    int minBet = ante;
    //游戏状态 进行中TRUE，结束FALSE
    boolean status = true;
    public game1Table(int ante) {
        super(4);
        //一号桌底注100，2号桌底注200，3号桌底注500
        switch (ante){
            case 1:
                this.ante = 100;
                break;
            case 2:
                this.ante = 200;
                break;
            case 3:
                this.ante = 500;
                break;
            default:
                this.ante = Integer.MAX_VALUE;
                break;
        }

        players.add(new Player(2000, "张三"));
        players.add(new Player(2000, "李四"));
        players.add(new Player(2000, "小红"));
        players.add(new Player(2000, "翠花"));
    }

    public ArrayList<Player> getPlayers() {
        return players;
    }

    public void showPlayers() {
        for (int i = 0; i < players.size(); i++) {
            System.out.print((i+1) + "号玩家" + "\t");
            System.out.print("\t" + players.get(i).name + "\t");
            System.out.print("\t" + "$" + players.get(i).balance + "\t");
            System.out.print("\t" + players.get(i).poker.numberObj.number + players.get(i).poker.suitObj.suit + "\t");
            System.out.println();
        }
    }

}